Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecate: host-usage, param_helpers, and prefix-1-ary #91

Merged
merged 15 commits into from
Aug 17, 2020

Conversation

ericdeansanchez
Copy link
Contributor

@ericdeansanchez ericdeansanchez commented Aug 14, 2020

The purpose of this PR is to deprecate the following:

  • ParamHelpers#rect without replacement
  • :host, replaced by options[:domain], @domain
  • prefix(1), replaced by prefix(0)

Host Deprecation

The change from host to domain has been made to improve consistency
on a few different levels. The technical reasons are that domain and
host refer to related, but ultimately, slightly different things.

"Host" generally refers to a particular machine that is connected to a
network whereas "domain" generally refers to some (more specific) IP
resource.

The other, equally pertinent, reasons revolve around achieving feature
parity kit-wide (e.g. imigx-core-js uses domain).

Imgix::Client#prefix Arity Change

At another point in time the prefix function was doing more work than
it is now. The work it once did required a path of sorts to be passed
to a get_host(path) (2fd2387). This is no longer the case so the arity
was reduced to zero.

@ericdeansanchez ericdeansanchez requested a review from a team as a code owner August 14, 2020 21:37
@ericdeansanchez ericdeansanchez changed the title deprecate: param_helpers deprecate: host-usage, param_helpers, and aliases Aug 14, 2020
@ericdeansanchez ericdeansanchez changed the title deprecate: host-usage, param_helpers, and aliases deprecate: host-usage, param_helpers, prefix(1), and aliases Aug 17, 2020
@ericdeansanchez ericdeansanchez merged commit e02c237 into main Aug 17, 2020
@ericdeansanchez ericdeansanchez changed the title deprecate: host-usage, param_helpers, prefix(1), and aliases deprecate: host-usage, param_helpers, and prefix-1-ary Aug 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants